package com.didi.gulimall.ware.controller;

import com.didi.gulimall.common.entity.LocalMqEntity;
import com.didi.gulimall.common.utils.R;
import com.didi.gulimall.ware.service.LocalMqService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 10626
 * @Create 2021/6/7 15:22
 */
@RestController
@Slf4j
@RequestMapping("localmq")
public class LocalmqController {
    @Autowired
    private LocalMqService localMqService;

    @PostMapping("savema")
    public R saveLocalmq(@RequestBody LocalMqEntity localMqEntity) {
        localMqService.save(localMqEntity);
        return R.ok();
    }
}
